package tech.yangzhijie.blog.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tech.yangzhijie.blog.admin.entity.SystemRole;
import tech.yangzhijie.blog.admin.entity.SystemUserRole;
import tech.yangzhijie.blog.admin.mapper.SystemUserRoleMapper;
import tech.yangzhijie.blog.admin.service.SystemUserRoleService;

import java.util.List;

/**
 * @Author: 探险家劫
 * @Date: 2021/11/18 20:31
 */
@Service
public class SystemUserRoleServiceImpl extends ServiceImpl<SystemUserRoleMapper, SystemUserRole> implements SystemUserRoleService {


    @Override
    public List<SystemRole> selectRoleListByUserId(Integer userId) {
        return baseMapper.selectRoleListByUserId(userId);
    }
}
